Skip to content

clarify async view incompatibility with gevent monkey patching#5885

Closed
vizahat36 wants to merge 1 commit intopallets:mainfrom
vizahat36:docs-async-gevent
Closed

clarify async view incompatibility with gevent monkey patching#5885
vizahat36 wants to merge 1 commit intopallets:mainfrom
vizahat36:docs-async-gevent

Conversation

@vizahat36
Copy link
Copy Markdown

@davidism Please Check

Closes #5881

This PR adds documentation clarifying the limitations and unsupported nature of using Flask async views together with gevent monkey patching.

While simple async views may appear to work for individual requests, concurrent requests can fail due to conflicts between asyncio’s event loop assumptions and gevent’s greenlet-based threading model. The documentation explains why this behavior occurs, highlights failure modes that typically only appear under concurrency, and outlines recommended alternatives and advanced override considerations.

This change is documentation-only and is based on the investigation and conclusions discussed in the linked issue.

@davidism davidism closed this Jan 10, 2026
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jan 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

asgiref fails with gevent patching

2 participants